package com.provider2.api;

import com.provider2.dto.Dto1;
import com.provider2.param.Param1;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(name = "provider", url = "${provideUrl}")
public interface GetNumApi {
    /**
     * @param param
     * @return
     */
    @RequestMapping(value = "/api/getNum", method = RequestMethod.POST)
    @ResponseBody
    Dto1 getRandomInt(@RequestBody Param1 param);
}
